<?php echo View::factory('admin/common/breadcrumbs')->set('breadcrumbs', $breadcrumbs)->render(); ?>
<div class="page-content">
    <div class="page-header">
        <h1>
            My Profile     
        </h1>
    </div>
    <?php echo View::factory('admin/common/messege')->render(); ?>
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row-fluid">
                <div class="span12">
                    <div class="widget-box">
                        <div class="widget-header widget-header-blue widget-header-flat">

                        </div>

                        <div class="widget-body">
                            <div class="widget-main">
                                <div class="step-content row-fluid position-relative" id="step-container">
                                    <form autocomplete="off" class="form-horizontal" id="validation-form" method="post">

                                        <h3 class="lighter block green">Personal Information</h3>
                                        

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="password2">Gender:</label>

                                            <div class="col-xs-12 col-sm-9">
                                                <div>
                                                    <label class="blue">
                                                        <input name="gender" <?= $en_user->getgender() == 1 ? 'checked' : '' ?> value="1" type="radio" class="ace" />
                                                        <span class="lbl"> Male</span>
                                                    </label>
                                                    &nbsp;
                                                    <label class="blue">
                                                        <input name="gender" <?= $en_user->getgender() == 2 ? 'checked' : '' ?>  value="2" type="radio" class="ace" />
                                                        <span class="lbl"> Female</span>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>

                                        

                                        <div class="space-2"></div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="phone">First Name<span class="red">*</span>:</label>

                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <input type="text" id="fname" placeholder="Enter text First Name" name="fname" class="col-xs-12 col-sm-5" value="<?= $en_user->getFname() ?>" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="space-2"></div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="url">Last Name<span class="red">*</span>:</label>

                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <input type="text" id="lname" placeholder="Enter text Last Name" name="lname" class="col-xs-12 col-sm-5" value="<?= $en_user->getLname() ?>" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="space-2"></div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right">Email:</label>

                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <input type="text" id="email" name="email" placeholder="Enter text Email" class="col-xs-12 col-sm-5" value="<?= $en_user->getEmail() ?>" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="space-2"></div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right">Phone: </label>
                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <input type="text" id="phone" name="phone" placeholder="Enter text Phone" class="col-xs-12 col-sm-5" value="<?= $en_user->getPhone() ?>" />
                                                </div>
                                            </div>
                                        </div>

                                        

                                        <div class="space-2"></div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="platform">Image:</label>
                                            <?php
                                            $image = "";
                                            if (trim($en_user->getimagename()) != "") {
                                                $image = $url_base_media . "/" . Controller_Helper_Constant::FOLDER_AVATAR . "/" . $en_user->getimagename();
                                            }
                                            ?>
                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <div id="uploadavatar"></div>
                                                    <br>
                                                    <img style="width: 70px;" id="imageuploadcontent" src="<?= $image ?>"  <?= !empty($image) ? '' : 'style="display: none;"' ?> />
                                                    <input type="hidden" name="imagename" id="imagename" value="<?= $en_user->getimagename() ?>"  />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="space-2"></div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="comment">House Number:</label>

                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <input class="col-xs-12 col-sm-5" type="text" placeholder="Enter text House Number" name="house_number" id="house_number" value="<?= $en_user->gethouse_number() ?>" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="space-2"></div>
                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="comment">DOB<span class="red">*</span>:</label>

                                            <div class="col-xs-12 col-sm-9">
                                                <div class="clearfix">
                                                    <input class="col-xs-12 col-sm-5" type="text" placeholder="Enter text DOB" name="dob" id="dob" value="<?= Controller_Helper_Format::format_date($en_user->getdob(), 'Y-m-d', 'm/d/Y') ?>" />mm/dd/yyyy
                                                </div>
                                            </div>
                                        </div>
                                        <div id="divEmployees" >
                                            <div class="hr hr-dotted"></div>
                                            <h3 class="lighter block green">Account Information</h3>
                                            <i>*Fields below are used for Employees</i>
                                            <div class="form-group">
                                                <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="username">Username<span class="red">*</span>:</label>

                                                <div class="col-xs-12 col-sm-9">
                                                    <div class="clearfix">
                                                        <input disabled="true" class="col-xs-12 col-sm-5" type="text" placeholder="Enter text Username" name="username" id="username" value="<?= $en_user->getusername() ?>" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="space-2"></div>
                                            <div class="form-group">
                                                <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="password">Password<span class="red">*</span>:</label>

                                                <div class="col-xs-12 col-sm-9">
                                                    <div class="clearfix">
                                                        <input class="col-xs-12 col-sm-5" type="password" placeholder="Enter text Password" name="password" id="password" value="<?= $en_user->getPassword() ?>" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="space-2"></div>

                                            <div class="form-group">
                                                <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="office_location">Office Location:</label>

                                                <div class="col-xs-12 col-sm-9">
                                                    <div class="clearfix">
                                                        <input type="text" class="col-xs-12 col-sm-5" placeholder="Enter text Office Location" maxlength="1000" value="<?= $en_user->getoffice_location() ?>" name="office_location" id="office_location" />
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="space-2"></div>

                                            <div class="form-group">
                                                <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="cell_phone">Cell Phone:</label>

                                                <div class="col-xs-12 col-sm-9">
                                                    <div class="clearfix">
                                                        <input type="text" class="col-xs-12 col-sm-5" placeholder="Enter text Cell Phone" value="<?= $en_user->getcell_phone() ?>" name="cell_phone" id="cell_phone" />
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                        
                                        
                                    
                                        <div class="space-8"></div>

                                    </form>
                                </div>

                                <hr />
                                <div class="row-fluid wizard-actions">
                                    
                                    <button id="cmdsave" class="btn btn-success btn-next" data-last="Finish ">
                                        Submit
                                        <i class="icon-arrow-right icon-on-right"></i>
                                    </button>
                                    <img id="loading" style="display: none;" src="<?= $url_base_theme . '/img/loading_1.gif' ?>" />
                                </div>
                            </div><!-- /widget-main -->
                        </div><!-- /widget-body -->
                    </div>
                </div>
            </div>
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div>
<script>
    var _user_add = user_add.CreateObject({
        id: '_user_add',
        FOLDER_UPLOAD_TEMP: '<?= Controller_Helper_Constant::FOLDER_TEMP ?>',
        
    });
    _user_add.init();
</script>